package com.goldrepo.play.common;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * <p>Description: Demo</p>
 *
 * @author Goldrepo
 * @date 2022-05-10 18:42
 **/
public final class ErrorResponse {

    private final String code;
    private final String msg;

    @JsonCreator
    public ErrorResponse(@JsonProperty("code")String code, @JsonProperty("msg")String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
